package com.tequila.core.dao;

import com.tequila.domain.dto.CardCouponDto;
import com.tequila.domain.entity.CardCoupon;
import com.tequila.domain.query.CardCouponQuery;

import java.util.List;

public interface CardCouponDao {
    CardCoupon queryById(Long id);

    List<CardCouponDto> queryByIdList(List<Long> idList);

    List<CardCouponDto> queryListByParam(CardCouponQuery query);

    List<CardCouponDto> queryPageListByParam(CardCouponQuery query);

    int queryPageCountByParam(CardCouponQuery query);

    int insert(CardCoupon entity);

    int insertSelective(CardCoupon entity);

    int updateById(CardCoupon param);

    int updateSelectiveById(CardCoupon param);

    int deleteById(Long id);

    int deleteByIdList(List<Long> idList);
}